//
//  IMB_UploadProgress.m
//  BabyNow
//
//  Created by 闫建刚 on 14-7-26.
//  Copyright (c) 2014年 iMobile. All rights reserved.
//

#import "IMB_UploadProgress.h"

@interface IMB_UploadProgress()
{
    /**
     *  上传进度回调处理
     */
    UploadProcessingHandler handler_;
}

@end


@implementation IMB_UploadProgress

#pragma mark - Property method
- (void)setProgress:(CGFloat)progress{
    _progress = progress;
    handler_(_progress);
}

#pragma mark - LifeCycle method

- (void)dealloc{
    NSLog(@"UploadProgress dealloc ....");
}

- (id)initWithUploadProgressHandler:(UploadProcessingHandler)handler{
    if (self = [super init]) {
        handler_ = handler;
    }
    return self;
} // 初始化方法

@end
